<%@ page language="java" pageEncoding="ISO-8859-1" import="java.util.*"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>ViewPoliceDist.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <link href="css/style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main-out">
<div class="main">
<div class="page">
<div class="top">
<div class="header">
<div class="header-top">
<%@include file="TopHead.jsp" %>
</div>
<div class="topmenu">
<%@include file="TopMenu.jsp" %>
</div>
<div class="">
<img src="images/d3.gif">
</div>
</div>
<div class="content">
<div class="content-left">
<div class="row1">
<div class="img">&nbsp;</div>
<div class="welcome">
<h1 class="title">Welcome to POlice Seva<span></span></h1>
<p>




</p>

 <%
		
		    HttpSession hs=request.getSession(false);
		    
		    ArrayList<String> ar1=(ArrayList<String>)hs.getAttribute("PI");
		    ArrayList<String> ar2=(ArrayList<String>)hs.getAttribute("PD");
		    ArrayList<String> ar3=(ArrayList<String>)hs.getAttribute("PH");
		    ArrayList<String> ar4=(ArrayList<String>)hs.getAttribute("ED");
		    ArrayList<String> ar5=(ArrayList<String>)hs.getAttribute("OI");
		  /*  Iterator it1=ar1.iterator();
		    Iterator it2=ar2.iterator();
		    Iterator it3=ar3.iterator();
		    Iterator it4=ar4.iterator();
		    Iterator it5=ar5.iterator();*/
		     if(ar1 !=null)
		     {
		 
		  %>
   <div align="center">
	<table border="1" width="100%">
		<tr>
			<td bgcolor="cyan" ><font color="green">Police District ID( Click on the id)</font></td>
			<td bgcolor="cyan"><font color="green">Police District Name</font></td>
			<td bgcolor="cyan"><font color="green">Police District Headquarter</font></td>
			<td bgcolor="cyan"><font color="green">Effect Date</font></td>
			<td bgcolor="cyan"><font color="green">Organization Id</font></td>
			
		</tr>
		<%
		  /*String pi=null;
		    	while(it1.hasNext())
		    	{
		    	
		    	  System.out.println(it1.next());*/
		    	  
		    	  
		    	  for(int i=0;i<ar1.size();i++)
		    	  {
		    	  
		    	%>
		    	 
		   
	    
		 <tr>
		    
			<td><a href="<%=request.getContextPath()%>/apda.do?apdp=show&pi=<%=ar1.get(i).toString()%>"><%=ar1.get(i).toString()%></a></td>
			<td><%=ar2.get(i).toString() %></td>
			<td><%=ar3.get(i).toString() %></td>
			<td><%=ar4.get(i).toString() %></td>
			<td><%=ar5.get(i).toString() %></td>
		</tr>
		<%
		
		}}
		
		 %>
	</table>
</div>






</div>
</div>
</div>
<div class="content-right">
<%@include file="SideMenu.jsp" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</div>
<div class="bottom">
<!--DO NOT Remove The Footer Links-->
<p><%@include file="Footer.jsp"  %><br>
<!--DO NOT Remove The Footer Links-->
</p>
</div>
</div>
</div>
</div>
</body>
</html:html>
